/**
 * Created by leo on 2/2.
 */
angular.module('panels')
    .directive('panelItilWorkflowTodoList', function () {
        return {
            scope: {},
            link: function (scope, elem) {
                scope.noticeTypes = [{id: 1, name: '事件'}, {id: 2, name: '维护'}, {id: 3, name: '告警'}, {
                    id: 4,
                    name: '其他'
                }];

                var s = [
                    {typeId: 1, typeName: '事件', todoCount: 0},
                    {typeId: 2, typeName: '维护', todoCount: 13},
                    {typeId: 3, typeName: '告警', todoCount: 26},
                    {typeId: 4, typeName: '其他', todoCount: 8}
                ];
                scope.todoCounts = {1: 0, 2: 13, 3: 26};
                scope.typeColors = {1: '#6D92C3', 2: '#C34954', 3: '#75C36C', 4: '#767AC3'};
                scope.notices = [
                    {type: 1, title: 'HMC日巡检记录_MCC HLJ业务支撑中心_董立国_130613(抄送阅读)'},
                    {type: 2, title: '大兴安岭申请数据库用户'},
                    {type: 2, title: '负责系统硬件及应用的检查'},
                    {type: 4, title: '集团考核指标保障查看'},
                    {type: 3, title: '对地市终端进行漏扫，需要开通绿盟扫描服务器与地市终端网段的防火墙策略'},
                    {type: 3, title: '申请开通BOSS测试环境与亲情通平台测试环境的防火墙策略'}
                ];
            },
            templateUrl: 'app/panel/itil/workflow-todo-list.html'
        };
    });